home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
glass
/
glass.lha
/
GLASS
/
libcvr
/
flagfind.c
< prev
next >
Wrap
C/C++ Source or Header
|
1990-11-09
|
427b
|
25 lines
/* file: flagfind.c */
#include "all.h"
#include "cvr.h"
/* Given a character 'c' and a flag table 'flagtab',
return a pointer to the entry of character 'c', or return
dbflagNIL if not found.
*/
dbflag *finddbflag( c, flagtab )
char c;
dbflag *flagtab;
{
register dbflag *p;
p = flagtab;
while( p->flagchar != '\0' ){
if( p->flagchar == c ){
return( p );
}
p++;
}
return( dbflagNIL );
}